package com.geotmt.billingcenter.common.enumpackage;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description 计费标准
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/11 15:04
 * @Version     v1
 **/
public enum CostFeeFlagEnum {

    /**
     * 计费标准
     */
    AMOUNT(1,"按量计费"),
    STAIR(2,"阶梯计费"),
    PACK_YEAR(5,"包年");
    /*QUERY(1, "查询计费"),
    GET(2, "查得计费"),
    STAIR_QUERY(3, "查询阶梯计费"),
    STAIR_GET(4, "查得阶梯计费"),
    PACK_YEAR(5,"包年");*/

    public Integer value;

    public String memo;

    CostFeeFlagEnum(Integer value, String memo) {
        this.value = value;
        this.memo = memo;
    }

    private static final Map<Integer, CostFeeFlagEnum> lookup = new HashMap<Integer, CostFeeFlagEnum>();

    static {
        for (CostFeeFlagEnum s : EnumSet.allOf(CostFeeFlagEnum.class)) {
            lookup.put(s.value, s);
        }
    }

    public static CostFeeFlagEnum get(Integer value) {
        return lookup.get(value);
    }
}
